package org.cs.mgr.before.model;

import javax.persistence.*;

import org.apache.poi.hssf.record.formula.functions.True;
import org.omg.CORBA.PRIVATE_MEMBER;

import java.sql.Timestamp;
@Entity
@Table(name = "goods")
public class Goods {
    private  String ID;
    private  String GOOD_TYPE_ID;
    private  String GOOD_NAME;
    private  String GOOD_PICTURE_URL;
    private  String GOOD_DETAILS;
    private  boolean GOOD_IS_GROUP;
    private Timestamp GROUP_START_TIME;
    private  Timestamp GROUP_END_TIME;
    private  Timestamp GOOD_CREATE_TIME;
    private  Timestamp GOOD_UPDATE_TIME;
    private  String GOODS_CREATER_ID;
    private  String GOODS_UPDATER_ID;
    private  boolean  GOODS_STATUS;
    private int PAY_NUM;
    private String GOODS_ORIGINALPRICE;
    private String GOODS_MEMBERPRICE;
    private String PEOPLE_NUMBER;
    private String GOODS_GROUP_RRICE;
    private String ORDER_ID;
    
    @Column(name="ORDER_ID",nullable=true,columnDefinition="varchar(32)")
    public String getORDER_ID() {
		return ORDER_ID;
	}
	public void setORDER_ID(String oRDER_ID) {
		ORDER_ID = oRDER_ID;
	}
	
	@Column(name="GOODS_GROUP_RRICE",nullable=true,columnDefinition="varchar(32)")
    public String getGOODS_GROUP_RRICE() {
		return GOODS_GROUP_RRICE;
	}
	public void setGOODS_GROUP_RRICE(String gOODS_GROUP_RRICE) {
		GOODS_GROUP_RRICE = gOODS_GROUP_RRICE;
	}
	
	@Column(name="PEOPLE_NUMBER",nullable=true,columnDefinition="varchar(32)")
	public String getPEOPLE_NUMBER() {
		return PEOPLE_NUMBER;
	}
	public void setPEOPLE_NUMBER(String pEOPLE_NUMBER) {
		PEOPLE_NUMBER = pEOPLE_NUMBER;
	}
	
	 
	@Column(name="GOODS_ORIGINALPRICE",nullable=true,columnDefinition="varchar(32)")
    public String getGOODS_ORIGINALPRICE() {
		return GOODS_ORIGINALPRICE;
	}
	public void setGOODS_ORIGINALPRICE(String gOODS_ORIGINALPRICE) {
		GOODS_ORIGINALPRICE = gOODS_ORIGINALPRICE;
	}

	
	@Column(name="GOODS_MEMBERPRICE",nullable=true,columnDefinition="varchar(32)")
	public String getGOODS_MEMBERPRICE() {
		return GOODS_MEMBERPRICE;
	}
	public void setGOODS_MEMBERPRICE(String gOODS_MEMBERPRICE) {
		GOODS_MEMBERPRICE = gOODS_MEMBERPRICE;
	}
	
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name = "ID")
    public String getID() {
 		return ID;
 	}
	public void setID(String iD) {
 		ID = iD;
 	}

    @Column(name = "GOOD_TYPE_ID",  nullable=false, columnDefinition="varchar(32)")
    public String getGOOD_TYPE_ID() {
        return GOOD_TYPE_ID;
    }

	public void setGOOD_TYPE_ID(String GOOD_TYPE_ID) {
        this.GOOD_TYPE_ID = GOOD_TYPE_ID;
    }
   
    @Column(name = "GOOD_NAME",  nullable=false, columnDefinition="varchar(10)")
    public String getGOOD_NAME() {
        return GOOD_NAME;
    }

    public void setGOOD_NAME(String GOOD_NAME) {
        this.GOOD_NAME = GOOD_NAME;
    }
    @Column(name = "GOOD_PICTURE_URL",  nullable=false, columnDefinition="varchar(30)")
    public String getGOOD_PICTURE_URL() {
        return GOOD_PICTURE_URL;
    }

    public void setGOOD_PICTURE_URL(String GOOD_PICTURE_URL) {
        this.GOOD_PICTURE_URL = GOOD_PICTURE_URL;
    }
    @Column(name = "GOOD_DETAILS",  nullable=false, columnDefinition="varchar(255)")
    public String getGOOD_DETAILS() {
        return GOOD_DETAILS;
    }

    public void setGOOD_DETAILS(String GOOD_DETAILS) {
        this.GOOD_DETAILS = GOOD_DETAILS;
    }
    @Column(name = "GOOD_IS_GROUP",  nullable=false, columnDefinition="tinyint(1)")
    public boolean isGOOD_IS_GROUP() {
        return GOOD_IS_GROUP;
    }

    public void setGOOD_IS_GROUP(boolean GOOD_IS_GROUP) {
        this.GOOD_IS_GROUP = GOOD_IS_GROUP;
    }
    
    @Column(name = "GROUP_START_TIME", columnDefinition="timestamp")
    public Timestamp getGROUP_START_TIME() {
        return GROUP_START_TIME;
    }

    public void setGROUP_START_TIME(Timestamp GROUP_START_TIME) {
        this.GROUP_START_TIME = GROUP_START_TIME;
    }
    @Column(name = "GROUP_END_TIME", columnDefinition="timestamp")
    public Timestamp getGROUP_END_TIME() {
        return GROUP_END_TIME;
    }

    public void setGROUP_END_TIME(Timestamp GROUP_END_TIME) {
        this.GROUP_END_TIME = GROUP_END_TIME;
    }
    @Column(name = "GOOD_CREATE_TIME",  nullable=false, columnDefinition="timestamp")
    public Timestamp getGOOD_CREATE_TIME() {
        return GOOD_CREATE_TIME;
    }

    public void setGOOD_CREATE_TIME(Timestamp GOOD_CREATE_TIME) {
        this.GOOD_CREATE_TIME = GOOD_CREATE_TIME;
    }
    
    @Column(name = "GOOD_UPDATE_TIME",  nullable=false, columnDefinition="timestamp")          //自动更新时间
    
    
    public Timestamp getGOOD_UPDATE_TIME() {
        return GOOD_UPDATE_TIME;
    }

    public void setGOOD_UPDATE_TIME(Timestamp GOOD_UPDATE_TIME) {
        this.GOOD_UPDATE_TIME = GOOD_UPDATE_TIME;
    }
    @Column(name = "GOODS_CREATER_ID",  nullable=false, columnDefinition="varchar(32)")
    public String getGOODS_CREATER_ID() {
        return GOODS_CREATER_ID;
    }

    public void setGOODS_CREATER_ID(String GOODS_CREATER_ID) {
        this.GOODS_CREATER_ID = GOODS_CREATER_ID;
    }
    @Column(name = "GOODS_UPDATER_ID",  nullable=false, columnDefinition="varchar(32)")
    public String getGOODS_UPDATER_ID() {
        return GOODS_UPDATER_ID;
    }

    public void setGOODS_UPDATER_ID(String GOODS_UPDATER_ID) {
        this.GOODS_UPDATER_ID = GOODS_UPDATER_ID;
    }
    @Column(name = "GOODS_STATUS",  nullable=false, columnDefinition="tinyint(1)")
    public boolean isGOODS_STATUS() {
        return GOODS_STATUS;
    }

    public void setGOODS_STATUS(boolean GOODS_STATUS) {
        this.GOODS_STATUS = GOODS_STATUS;
    }
    @Column(name = "PAY_NUM",  nullable=false, columnDefinition="int")
    public int getPAY_NUM() {
        return PAY_NUM;
    }
    public void setPAY_NUM(int PAY_NUM) {
        this.PAY_NUM = PAY_NUM;
    }
    
}
